<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function changeCode(){
            let imgObj = document.getElementById("codeImg");
            imgObj.src = "/checkCode?"+Math.random();
        }
    </script>
</head>
<body>
    首页
    <form action="/user/add" method="post">
        用户名：<input type="text" name="name"><br>
        性别：<input type="radio" name="sex" value="男">男
            <input type="radio" name="sex" value="女">女<br>
        工资：<input type="text" name="money"><br>
        生日：<input type="text" name="birthday"><br>
        验证码：<img src="/checkCode" id="codeImg">
        <a href="javascript:changeCode()">看不清楚，换一张</a><br>
        <input type="submit" value="提交">
    </form>

<hr>
    <a href="user/del/1">访问后台</a><br>
    <a href="/user/del/1">访问后台</a><br>

</body>
</html>